package com.shouer.doc.ui.neworder.view;

import android.content.Context;

import com.shouer.doc.application.App;
import com.shouer.doc.ui.login.model.UserModel;
import com.shouer.doc.ui.neworder.model.HealthRecord;
import com.shouer.doc.ui.neworder.model.SimpleOrderModel;
import com.shouer.doc.ui.neworder.response.QueryHealthOrderResponse;

import java.util.List;

/**
 * Created by ZXL on 2016/11/25.
 */

public interface INewOrdView {

    App getApp();

    Context getContext();

    UserModel getUser();

    void newOrderItemClick(SimpleOrderModel orderModel);

    void receiveOrder(SimpleOrderModel orderModel);

    void refuseOrder(SimpleOrderModel orderModel);
    //刷新订单列表
    void refreshOrderList(List<SimpleOrderModel> simpleOrderModels);
    //查询更多的订单
    void attachOrdList(List<SimpleOrderModel> simpleOrderModels);
    //查询订单失败
    void loadOrdDataFailed(String failInfo);

    void receiveOrderSuccess(SimpleOrderModel simpleOrderModel);

    void receiveOrderFailed(String info);

    void orderHasBeReceived(SimpleOrderModel orderModel,String info);

    void receiveHealthRecordSuccess(HealthRecord record);

    void receiveHealthRecordFailed(String info);

    void healthRecordHasBeReceived(HealthRecord record,String info);

    void refuseOrderSuccess(SimpleOrderModel simpleOrderModel);

    void refuseOrderFailed(String failInfo);

    void refreshHealthOrderList(QueryHealthOrderResponse response);

    void attachHealthOrdList(QueryHealthOrderResponse response);

    void loadHealthOrdDataFailed(String failInfo);

    void receiveHealthRecord(HealthRecord record);
}
